﻿namespace Example.Structural.Bridge
{
    public sealed class Switch : IPower
    {
        public int Voltage { get; private set; }

        public void Off()
        {
            Voltage = 0;
        }

        public void On()
        {
            Voltage = 240;
        }
    }
}